package com.tingyuge.base.thread.wang.chapter5;

import java.util.Optional;

public class ThreadPriority {
    public static void main(String[] args) {
        Thread t1 =new Thread(()->{
            System.out.println("xxx.main");
        },"t1");
        t1.start();
        Optional.of(t1.getId()).ifPresent(System.out::println);
        Optional.of(t1.getName()).ifPresent(System.out::println);
        Optional.of(t1.getPriority()).ifPresent(System.out::println);
    }
}
